package com.icity.service.impl;

import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.icity.entity.media.AppUser;
import com.icity.entity.system.TableSupport;
import com.icity.mapper.MediaMapper;
import com.icity.service.MediaService;
@Service
public class MediaServiceImpl implements MediaService{

	@Autowired
	private MediaMapper mediaMapper;

	@Override
	public TableSupport<?> getAppUserList(Map<Object, Object> map) {
		TableSupport<AppUser> listTable = new TableSupport<AppUser>();
		List<AppUser> listAppUser = mediaMapper.getAppUserList(map);
		int count = mediaMapper.getAppUserCount(map);
		listTable.setCode(0);
		listTable.setMsg(null);
		listTable.setCount(count);
		listTable.setData(listAppUser);
		return listTable;
	}

}
